package com.chixing.day06_static.static_demo;

import com.chixing.day06_static.static_demo.Bank;

public class BankTest {
    public static void main(String[] args) {
        //Bank 只能实例化一次  让该类的构造函数  私有化
        Bank b1=Bank.fun1();
        Bank.fun1();


//        Bank bank1=new Bamk();  error   类已经被私有化  不能进行外部类调用

        Bank.getBankInstance();
        Bank bank1= Bank.getBankInstance();
        Bank bank2= Bank.getBankInstance();
        Bank bank3= Bank.getBankInstance();

        System.out.println(bank1==bank2);
        System.out.println(bank2==bank3);


    }

}
